package com.neudu.glsb.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 异常订单表（无图片版）
 * @TableName abnormal_order
 */
@TableName(value ="abnormal_order")
@Data
public class AbnormalOrder implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单日期
     */
    private Date orderDate;

    /**
     * 异常类型
     */
    private String abnormalType;

    /**
     * 异常描述
     */
    private String abnormalDesc;

    /**
     * 处理建议
     */
    private String suggestion;

    /**
     * 提交人
     */
    private String createBy;

    /**
     * 提交时间
     */
    private Date createTime;

    /**
     * 处理状态：待处理、处理中、已处理
     */
    private String handleStatus;

    /**
     * 处理人
     */
    private String handleBy;

    /**
     * 处理备注
     */
    private String handleRemark;

    /**
     * 处理时间
     */
    private Date handleTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AbnormalOrder other = (AbnormalOrder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo()))
            && (this.getOrderDate() == null ? other.getOrderDate() == null : this.getOrderDate().equals(other.getOrderDate()))
            && (this.getAbnormalType() == null ? other.getAbnormalType() == null : this.getAbnormalType().equals(other.getAbnormalType()))
            && (this.getAbnormalDesc() == null ? other.getAbnormalDesc() == null : this.getAbnormalDesc().equals(other.getAbnormalDesc()))
            && (this.getSuggestion() == null ? other.getSuggestion() == null : this.getSuggestion().equals(other.getSuggestion()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getHandleStatus() == null ? other.getHandleStatus() == null : this.getHandleStatus().equals(other.getHandleStatus()))
            && (this.getHandleBy() == null ? other.getHandleBy() == null : this.getHandleBy().equals(other.getHandleBy()))
            && (this.getHandleRemark() == null ? other.getHandleRemark() == null : this.getHandleRemark().equals(other.getHandleRemark()))
            && (this.getHandleTime() == null ? other.getHandleTime() == null : this.getHandleTime().equals(other.getHandleTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
        result = prime * result + ((getOrderDate() == null) ? 0 : getOrderDate().hashCode());
        result = prime * result + ((getAbnormalType() == null) ? 0 : getAbnormalType().hashCode());
        result = prime * result + ((getAbnormalDesc() == null) ? 0 : getAbnormalDesc().hashCode());
        result = prime * result + ((getSuggestion() == null) ? 0 : getSuggestion().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getHandleStatus() == null) ? 0 : getHandleStatus().hashCode());
        result = prime * result + ((getHandleBy() == null) ? 0 : getHandleBy().hashCode());
        result = prime * result + ((getHandleRemark() == null) ? 0 : getHandleRemark().hashCode());
        result = prime * result + ((getHandleTime() == null) ? 0 : getHandleTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", orderDate=").append(orderDate);
        sb.append(", abnormalType=").append(abnormalType);
        sb.append(", abnormalDesc=").append(abnormalDesc);
        sb.append(", suggestion=").append(suggestion);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", handleStatus=").append(handleStatus);
        sb.append(", handleBy=").append(handleBy);
        sb.append(", handleRemark=").append(handleRemark);
        sb.append(", handleTime=").append(handleTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}